home *** CD-ROM | disk | FTP | other *** search
/ Enter Special 5: Digital Photography / ENTER Special 05.iso / Grafika / Paint Shop Pro 8.0 / psp800ev.exe / Data1.cab / __init__.py6 < prev    next >
Encoding:
Text File  |  2003-04-22  |  847 b   |  36 lines

  1. # Copyright (C) 2001 Python Software Foundation
  2. # Author: barry@zope.com (Barry Warsaw)
  3.  
  4. """A package for parsing, handling, and generating email messages.
  5. """
  6.  
  7. __version__ = '1.0'
  8.  
  9. __all__ = ['Encoders',
  10.            'Errors',
  11.            'Generator',
  12.            'Iterators',
  13.            'MIMEAudio',
  14.            'MIMEBase',
  15.            'MIMEImage',
  16.            'MIMEMessage',
  17.            'MIMEText',
  18.            'Message',
  19.            'Parser',
  20.            'Utils',
  21.            'message_from_string',
  22.            'message_from_file',
  23.            ]
  24.  
  25.  
  26.  
  27. # Some convenience routines
  28. from Parser import Parser as _Parser
  29. from Message import Message as _Message
  30.  
  31. def message_from_string(s, _class=_Message):
  32.     return _Parser(_class).parsestr(s)
  33.  
  34. def message_from_file(fp, _class=_Message):
  35.     return _Parser(_class).parse(fp)
  36.